home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1501 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  336 b   |  18 lines

  1. on(release){
  2.    if(_root.money >= 1000 && _root.gotFarm != 1)
  3.    {
  4.       _root.gotFarm = 1;
  5.       _root.farm._visible = true;
  6.       messo = "Got the farm!";
  7.       _root.money -= 1000;
  8.    }
  9.    else if(_root.gotFarm == 1)
  10.    {
  11.       messo = "Already have it!";
  12.    }
  13.    else
  14.    {
  15.       messo = "Not enough money!";
  16.    }
  17. }
  18.